import Vue from 'vue';



Vue.filter('getDateTime', function (value) {
  if(!value){
    return "";
  }
  let date= new Date(value);
  return date.getFullYear()+"-"+((date.getMonth()+1)<10?('0'+(date.getMonth()+1)):date.getMonth()+1)+"-"+(date.getDate()<10?('0'+date.getDate()):date.getDate())+" "+(date.getHours()<10?('0'+date.getHours()):date.getHours())+":"+(date.getMinutes()<10?('0'+date.getMinutes()):date.getMinutes())+":"+(date.getSeconds()<10?('0'+date.getSeconds()):date.getSeconds())
});


